widget: Pull margin computation out of adjust_allocation
authorBenjamin Otte <otte@redhat.com>
Sat, 22 Feb 2020 04:25:14 +0000 (05:25 +0100)
committerBenjamin Otte <otte@redhat.com>
Sat, 22 Feb 2020 06:33:23 +0000 (07:33 +0100)
commit4128ee88b05470cdfc337697a309f9c8594c8602
tree924b391005d16af608adaf69690443f9d371ea95
parent418bdc87efbd335f96c2a6ac0c16504cb691ce54
widget: Pull margin computation out of adjust_allocation

It's way cheaper to just do it.

Also simplifies adjust_size_allocation a lot.
gtk/gtkwidget.c
gtk/gtkwidgetprivate.h